home *** CD-ROM | disk | FTP | other *** search
/ CDV Software Presents (USA) / CDV Software Presents (USA).bin / demo / bk_demo.exe / DATA.PAK / ui / common / ForwardToEncyclopedia.lua < prev    next >
Encoding:
Text File  |  2002-12-19  |  455 b   |  20 lines

  1. nWindowID = 0
  2.  
  3. function LuaInit( ... )
  4.     OutputValue( "LuaInit called()", arg[1] )
  5.     nWindowID = arg[1]
  6. end
  7.  
  8. function LuaProcessMessage( nMessageCode, nFirst, nSecond )
  9.     if ( nMessageCode == 268435457 ) then
  10.         OutputValue( "268435457 message, nFirst = ", nFirst )
  11.         if ( nFirst >= 20000 and nFirst < 29000 ) then
  12.             local nMessage = SetProcessedFlag( nFirst )
  13.             AddMessage( nMessage, nWindowID, 1 )
  14.             return 1
  15.         end
  16.     end
  17.  
  18.     return 0
  19. end
  20.